package ${package.ServiceImpl};

import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;

/**
 * <p>
 * ${table.comment!} 服务实现类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Service
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {
@Override
    public List<${entity}> listByParams(Page<${entity}> page, ${entity} ${entity?cap_first}) {
        return this.baseMapper.listByParams(page,${entity?cap_first});
    }
    @Override
    public List<${entity}> listByParams(${entity} ${entity?cap_first}) {
        Page<${entity}> page=new Page<${entity}>();
        page.setSize(Integer.MAX_VALUE);
        return this.baseMapper.listByParams(page,${entity?cap_first});
    }

    @Override
    public Page<${entity}> listByParams(${entity} ${entity?cap_first}, Integer current, Integer size) {
        Page<${entity}> page=new Page<${entity}>();
        page.setSize(size);
        page.setRecords(this.baseMapper.listByParams(page,${entity?cap_first}));
        return page);
    }
}
</#if>
